package com.cxyzy.imageviewdemo

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.bumptech.glide.Glide
import kotlinx.android.synthetic.main.activity_network.*

class NetworkImageActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_network)

        val url = "https://c-ssl.duitang.com/uploads/item/201801/30/20180130141656_GNhmd.jpeg"
        Glide.with(this).load(url).into(imageView)
    }
}
